package com.ybkj.o2o.zhuanche.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.util.Date;

/**
 * 乘客等级.
 */
public class PassengerGrade implements Serializable {
  private Long id;

  private String name;  //级别名称

  private Integer limitAmounts;// 一次性下单最大人数

  private Long daijiaAreaId;//代驾收费

  private Long tzAreaId;//趟租收费

  private Long brzAreaId;//半日租收费

  private Long rzAreaId;//日租收费

  private Long jjAreaId;//接机收费

  private Long sjAreaId;//送机收费

  private Long jzAreaId;//接站收费

  private Long szAreaId;//送站收费

  private boolean defaultGrade;
  
  private Long companyId;//公司id
  
  private String companyName;//公司名称

  private String appKey; //用于区别系统

  private Date created;

  private Date updated;

  @JsonIgnore
  private Integer version;

  private Long parallelOrderNumber; //并行订单量

  public Long getParallelOrderNumber() {
    if (null == parallelOrderNumber) {
      return 0L;
    } else {
      return parallelOrderNumber;
    }
  }

  public void setParallelOrderNumber(Long parallelOrderNumber) {
    this.parallelOrderNumber = parallelOrderNumber;
  }

  public Long getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Long companyId) {
    this.companyId = companyId;
  }

  public String getCompanyName() {
    return companyName;
  }

  public void setCompanyName(String companyName) {
    this.companyName = companyName;
  }

  private static final long serialVersionUID = 1L;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name == null ? null : name.trim();
  }

  public String getAppKey() {
    return appKey;
  }

  public void setAppKey(String appKey) {
    this.appKey = appKey == null ? null : appKey.trim();
  }

  public Date getCreated() {
    return created;
  }

  public void setCreated(Date created) {
    this.created = created;
  }

  public Date getUpdated() {
    return updated;
  }

  public void setUpdated(Date updated) {
    this.updated = updated;
  }

  public Integer getVersion() {
    return version;
  }

  public void setVersion(Integer version) {
    this.version = version;
  }

  public Integer getLimitAmounts() {
    return limitAmounts;
  }

  public void setLimitAmounts(Integer limitAmounts) {
    this.limitAmounts = limitAmounts;
  }

  public Long getDaijiaAreaId() {
    return daijiaAreaId;
  }

  public void setDaijiaAreaId(Long daijiaAreaId) {
    this.daijiaAreaId = daijiaAreaId;
  }

  public Long getTzAreaId() {
    return tzAreaId;
  }

  public void setTzAreaId(Long tzAreaId) {
    this.tzAreaId = tzAreaId;
  }

  public Long getBrzAreaId() {
    return brzAreaId;
  }

  public void setBrzAreaId(Long brzAreaId) {
    this.brzAreaId = brzAreaId;
  }

  public Long getRzAreaId() {
    return rzAreaId;
  }

  public void setRzAreaId(Long rzAreaId) {
    this.rzAreaId = rzAreaId;
  }

  public Long getJjAreaId() {
    return jjAreaId;
  }

  public void setJjAreaId(Long jjAreaId) {
    this.jjAreaId = jjAreaId;
  }

  public Long getSjAreaId() {
    return sjAreaId;
  }

  public void setSjAreaId(Long sjAreaId) {
    this.sjAreaId = sjAreaId;
  }

  public Long getJzAreaId() {
    return jzAreaId;
  }

  public void setJzAreaId(Long jzAreaId) {
    this.jzAreaId = jzAreaId;
  }

  public Long getSzAreaId() {
    return szAreaId;
  }

  public void setSzAreaId(Long szAreaId) {
    this.szAreaId = szAreaId;
  }

  public boolean isDefaultGrade() {
    return defaultGrade;
  }

  public void setDefaultGrade(boolean defaultGrade) {
    this.defaultGrade = defaultGrade;
  }

  @Override
  public String toString() {
    return "PassengerGrade [id=" + id + ", name=" + name + ", limitAmounts=" + limitAmounts
        + ", daijiaAreaId=" + daijiaAreaId + ", tzAreaId=" + tzAreaId + ", brzAreaId=" + brzAreaId
        + ", rzAreaId=" + rzAreaId + ", jjAreaId=" + jjAreaId + ", sjAreaId=" + sjAreaId
        + ", jzAreaId=" + jzAreaId + ", szAreaId=" + szAreaId + ", defaultGrade=" + defaultGrade
        + ", companyId=" + companyId + ", companyName=" + companyName + ", appKey=" + appKey
        + ", created=" + created + ", updated=" + updated + ", version=" + version
        + ", parallelOrderNumber=" + parallelOrderNumber + "]";
  }

  
}
